[INFO] cloning repository https://github.com/synetic707/rust-hook
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/synetic707/rust-hook" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsynetic707%2Frust-hook", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsynetic707%2Frust-hook'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] e43b33b5d5da83943465d9f6abe2c544cca48bfb
[INFO] building synetic707/rust-hook against master#ff34b919075f35a1787659e9c448a34b06bab8de for issue-85264
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsynetic707%2Frust-hook" "/workspace/builds/worker-3/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/synetic707/rust-hook on toolchain ff34b919075f35a1787659e9c448a34b06bab8de
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/synetic707/rust-hook
[INFO] finished tweaking git repo https://github.com/synetic707/rust-hook
[INFO] tweaked toml for git repo https://github.com/synetic707/rust-hook written to /workspace/builds/worker-3/source/Cargo.toml
[INFO] crate git repo https://github.com/synetic707/rust-hook already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] bb1c7c636159b02d1b7e7e57958151660e5d91def35d57d600cb5ece8ad8b00c
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "bb1c7c636159b02d1b7e7e57958151660e5d91def35d57d600cb5ece8ad8b00c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "bb1c7c636159b02d1b7e7e57958151660e5d91def35d57d600cb5ece8ad8b00c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "bb1c7c636159b02d1b7e7e57958151660e5d91def35d57d600cb5ece8ad8b00c", kill_on_drop: false }`
[INFO] [stdout] bb1c7c636159b02d1b7e7e57958151660e5d91def35d57d600cb5ece8ad8b00c
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 5a019b28744b2812e1dcb995de290382141c8eedecebc2560a7ca7e30ae3251a
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "5a019b28744b2812e1dcb995de290382141c8eedecebc2560a7ca7e30ae3251a", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]    Compiling winapi v0.3.5
[INFO] [stderr]    Compiling executable_memory v0.1.2
[INFO] [stderr]    Compiling rust-hook v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stdout]  --> src/hook.rs:6:13
[INFO] [stdout]   |
[INFO] [stdout] 6 | use winapi::um::winnt::PAGE_EXECUTE_READWRITE;
[INFO] [stdout]   |             ^^ could not find `um` in `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `um` in `winapi`
[INFO] [stdout]  --> src/hook.rs:7:13
[INFO] [stdout]   |
[INFO] [stdout] 7 | use winapi::um::memoryapi::VirtualProtect;
[INFO] [stdout]   |             ^^ could not find `um` in `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0432]: unresolved import `winapi::ctypes`
[INFO] [stdout]  --> src/hook.rs:8:13
[INFO] [stdout]   |
[INFO] [stdout] 8 | use winapi::ctypes::c_void;
[INFO] [stdout]   |             ^^^^^^ could not find `ctypes` in `winapi`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtect` in this scope
[INFO] [stdout]   --> src/hook.rs:30:13
[INFO] [stdout]    |
[INFO] [stdout] 30 |             VirtualProtect(original_function as *mut c_void, 5, PAGE_EXECUTE_READWRITE, &mut dw_old_protect);
[INFO] [stdout]    |             ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `PAGE_EXECUTE_READWRITE` in this scope
[INFO] [stdout]   --> src/hook.rs:30:65
[INFO] [stdout]    |
[INFO] [stdout] 30 |             VirtualProtect(original_function as *mut c_void, 5, PAGE_EXECUTE_READWRITE, &mut dw_old_protect);
[INFO] [stdout]    |                                                                 ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `VirtualProtect` in this scope
[INFO] [stdout]   --> src/hook.rs:40:13
[INFO] [stdout]    |
[INFO] [stdout] 40 |             VirtualProtect(original_function as *mut c_void, 5, dw_old_protect, &mut dw_bkup);
[INFO] [stdout]    |             ^^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::os::raw::c_void`
[INFO] [stdout]   --> src/main.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::os::raw::c_void;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-hook`
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `Command { std: "docker" "inspect" "5a019b28744b2812e1dcb995de290382141c8eedecebc2560a7ca7e30ae3251a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5a019b28744b2812e1dcb995de290382141c8eedecebc2560a7ca7e30ae3251a", kill_on_drop: false }`
[INFO] [stdout] 5a019b28744b2812e1dcb995de290382141c8eedecebc2560a7ca7e30ae3251a
